package com.wo.cloud.elasticsearch;

import com.wo.cloud.core.entity.Response;
import com.wo.cloud.elasticsearch.entity.LogVo;
import com.wo.cloud.elasticsearch.util.EsUtil;

import java.io.IOException;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/3/25 21:58
 * Description:
 */

public class EsApplication {

    public static void main(String[] args) throws IOException {

        EsUtil<LogVo> logVoEsUtil = new EsUtil<>();
        Response response = logVoEsUtil.searchData("uip-edu", "logvo", "loglevel", "INFO", 0, 100, LogVo.class);
        System.out.println(response);
    }
}
